package com.halflife.comeElectricity.member.rider;

import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

import java.math.BigDecimal;
import java.util.Date;

@QueryAnn(title = "订单",mainTitle = "会员管理",table = "t_riderorder")
public class RiderOrder {
    @Test
    public void generate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
//        builder.buildAlterTable(this.getClass());
    }
    @QueryAnn(value = "id")
    private Integer id;
    @QueryAnn(value = "会员phone",operate = "like")
    private String phone;
    @QueryAnn(value = "会员名称",operate = "like")
    private String riderName;
    @QueryAnn(value = "会员id")
    private Integer riderId;
    @QueryAnn(value = "金额")
    private BigDecimal money;
    @QueryAnn(value = "开始日期")
    private Long beginDate;
    @QueryAnn(value = "结束日期")
    private Long endDate;
    @QueryAnn(value = "创建日期")
    private Long cretaeDate;
    @QueryAnn(value = "分数")
    private Integer score;
    @QueryAnn(value = "状态")
    private Integer status;
    @QueryAnn(value = "电池Id")
    private Integer batteryId;
    @QueryAnn(value = "还电池Id")
    private Integer backBatteryId;
    @QueryAnn(value = "电池No",operate = "like")
    private String batteryNo;
    @QueryAnn(value = "还电池No",operate = "like")
    private String backBatteryNo;
    @QueryAnn(value = "电池箱子No")
    private String batteryBoxNo;
    @QueryAnn(value = "电池箱子Id")
    private Integer batteryBoxId;
    @QueryAnn(value = "还电池箱子No")
    private String backBatteryBoxNo;
    @QueryAnn(value = "还电池箱子Id")
    private Integer backBatteryBoxId;
    @QueryAnn(value = "电池柜子No",operate = "like")
    private String batteryCabinetNo;
    @QueryAnn(value = "还电池柜子No",operate = "like")
    private String backBatteryCabinetNo;
    @QueryAnn(value = "电池柜子名称",operate = "like")
    private String batteryCabinetName;
    @QueryAnn(value = "是否有效")
    private Boolean valid;
     @QueryAnn(value = "取电压")
    private String takeVoltage;
    @QueryAnn(value = "还电压")
    private String backVoltage;
     @QueryAnn(value = "订单数")
    private String runOrders;
     @QueryAnn(value = "公里数")
    private String runKilometers;
     @QueryAnn(value = "特殊情况")
    private String specialCase;
     @QueryAnn(value = "车辆情况")
    private String carCase;
    @QueryAnn(custormName = "rider.departmentId",queryed = true,persist = false)
    private Integer departmentId;
    @QueryAnn(value = "接口异常")
    private String apiMemo;
    @QueryAnn(value = "接口异常")
    private Integer apiState;
    @QueryAnn(value = "返回状态")
    private Integer returnState;
    @QueryAnn(value = "操作时间")
    private Long operateTime;
    @QueryAnn(value = "骑手",persist = false)
    @Join(join="department")
    private Rider rider;

    public void init() {
        this.valid = Boolean.TRUE;
        this.status = -1;
        this.cretaeDate = new Date().getTime();
    }

    public Integer getReturnState() {
        return returnState;
    }

    public void setReturnState(Integer returnState) {
        this.returnState = returnState;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRiderId() {
        return riderId;
    }

    public void setRiderId(Integer riderId) {
        this.riderId = riderId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Long getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Long beginDate) {
        this.beginDate = beginDate;
    }

    public Long getEndDate() {
        return endDate;
    }

    public void setEndDate(Long endDate) {
        this.endDate = endDate;
    }

    public Long getCretaeDate() {
        return cretaeDate;
    }

    public void setCretaeDate(Long cretaeDate) {
        this.cretaeDate = cretaeDate;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }


    public Integer getBatteryId() {
        return batteryId;
    }

    public void setBatteryId(Integer batteryId) {
        this.batteryId = batteryId;
    }

    public String getBatteryNo() {
        return batteryNo;
    }

    public void setBatteryNo(String batteryNo) {
        this.batteryNo = batteryNo;
    }

    public String getBatteryBoxNo() {
        return batteryBoxNo;
    }

    public void setBatteryBoxNo(String batteryBoxNo) {
        this.batteryBoxNo = batteryBoxNo;
    }

    public Integer getBatteryBoxId() {
        return batteryBoxId;
    }

    public void setBatteryBoxId(Integer batteryBoxId) {
        this.batteryBoxId = batteryBoxId;
    }

    public String getBatteryCabinetNo() {
        return batteryCabinetNo;
    }

    public void setBatteryCabinetNo(String batteryCabinetNo) {
        this.batteryCabinetNo = batteryCabinetNo;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public String getBatteryCabinetName() {
        return batteryCabinetName;
    }

    public void setBatteryCabinetName(String batteryCabinetName) {
        this.batteryCabinetName = batteryCabinetName;
    }

    public Rider getRider() {
        return rider;
    }

    public void setRider(Rider rider) {
        this.rider = rider;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRiderName() {
        return riderName;
    }

    public void setRiderName(String riderName) {
        this.riderName = riderName;
    }

    public String getTakeVoltage() {
        return takeVoltage;
    }

    public void setTakeVoltage(String takeVoltage) {
        this.takeVoltage = takeVoltage;
    }

    public String getBackVoltage() {
        return backVoltage;
    }

    public void setBackVoltage(String backVoltage) {
        this.backVoltage = backVoltage;
    }

    public String getRunOrders() {
        return runOrders;
    }

    public void setRunOrders(String runOrders) {
        this.runOrders = runOrders;
    }

    public String getRunKilometers() {
        return runKilometers;
    }

    public void setRunKilometers(String runKilometers) {
        this.runKilometers = runKilometers;
    }

    public String getSpecialCase() {
        return specialCase;
    }

    public void setSpecialCase(String specialCase) {
        this.specialCase = specialCase;
    }

    public String getCarCase() {
        return carCase;
    }

    public void setCarCase(String carCase) {
        this.carCase = carCase;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getBackBatteryId() {
        return backBatteryId;
    }

    public void setBackBatteryId(Integer backBatteryId) {
        this.backBatteryId = backBatteryId;
    }

    public String getBackBatteryNo() {
        return backBatteryNo;
    }

    public void setBackBatteryNo(String backBatteryNo) {
        this.backBatteryNo = backBatteryNo;
    }

    public String getBackBatteryBoxNo() {
        return backBatteryBoxNo;
    }

    public void setBackBatteryBoxNo(String backBatteryBoxNo) {
        this.backBatteryBoxNo = backBatteryBoxNo;
    }

    public Integer getBackBatteryBoxId() {
        return backBatteryBoxId;
    }

    public void setBackBatteryBoxId(Integer backBatteryBoxId) {
        this.backBatteryBoxId = backBatteryBoxId;
    }

    public String getBackBatteryCabinetNo() {
        return backBatteryCabinetNo;
    }

    public void setBackBatteryCabinetNo(String backBatteryCabinetNo) {
        this.backBatteryCabinetNo = backBatteryCabinetNo;
    }

    public String getApiMemo() {
        return apiMemo;
    }

    public void setApiMemo(String apiMemo) {
        this.apiMemo = apiMemo;
    }

    public Integer getApiState() {
        return apiState;
    }

    public void setApiState(Integer apiState) {
        this.apiState = apiState;
    }

    public Long getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Long operateTime) {
        this.operateTime = operateTime;
    }
}